package com.xls.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName goods
 */
@TableName(value ="goods")
@Data
public class Goods implements Serializable {
    /**
     * 
     */
    @TableId
    private String idgoods;

    /**
     * 
     */
    private String goodsname;

    /**
     * 
     */
    private String expdate;

    /**
     * 
     */
    private String classify;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Goods other = (Goods) that;
        return (this.getIdgoods() == null ? other.getIdgoods() == null : this.getIdgoods().equals(other.getIdgoods()))
            && (this.getGoodsname() == null ? other.getGoodsname() == null : this.getGoodsname().equals(other.getGoodsname()))
            && (this.getExpdate() == null ? other.getExpdate() == null : this.getExpdate().equals(other.getExpdate()))
            && (this.getClassify() == null ? other.getClassify() == null : this.getClassify().equals(other.getClassify()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getIdgoods() == null) ? 0 : getIdgoods().hashCode());
        result = prime * result + ((getGoodsname() == null) ? 0 : getGoodsname().hashCode());
        result = prime * result + ((getExpdate() == null) ? 0 : getExpdate().hashCode());
        result = prime * result + ((getClassify() == null) ? 0 : getClassify().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", idgoods=").append(idgoods);
        sb.append(", goodsname=").append(goodsname);
        sb.append(", expdate=").append(expdate);
        sb.append(", classify=").append(classify);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}